<template>
<div>
    <div class="common-form">{{$t('plus.other')}}</div>

    <el-form-item :label="$t('plus.purchase_condition')">
      <el-radio-group v-model="form.conditions">
        <el-radio :label="1">{{$t('plus.buy_at_lowest_price')}}</el-radio>
        <el-radio :label="0">{{$t('plus.buy_during_bargain')}}</el-radio>
      </el-radio-group>
      <el-col class="ml10 gray">
        <template v-if="form.conditions == 1">{{$t('plus.only_lowest_price_note')}}</template>
        <template v-if="form.conditions == 0"
          >{{$t('plus.during_bargain_note')}}</template
        >
      </el-col>
    </el-form-item>

    <el-form-item :label="$t('plus.status')">
      <el-radio-group v-model="form.status">
        <el-radio :label="1">{{$t('plus.active')}}</el-radio>
        <el-radio :label="0">{{$t('plus.inactive')}}</el-radio>
      </el-radio-group>
    </el-form-item>

    <el-form-item :label="$t('plus.sort')">
      <el-input v-model="form.sort" type="number" class="max-w460"></el-input>
      <el-col class="ml10 gray">{{$t('plus.sort_hint')}}</el-col>
    </el-form-item>
  </div>
</template>

<script>
export default {
  inject: ["form"]
};
</script>

